package com.un.ebs.product.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.un.ebs.core.enums.IEnum;
import lombok.Getter;

/**
 * @author liubo
 * @email liubocs@163.com
 * @date 2020/5/19 14:55
 * SkuItem 的交付类型
 */
@Getter
public enum SkuItemDeliverTypeEnum implements IEnum {

    Default(0, "未定义"),
    Sale(1, "直接销售"),
    ProductionBom(2, "作为生产物料");

    @EnumValue
    private final int value;
    private final String desc;

    SkuItemDeliverTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public int getCode() {
        return value;
    }
}
